package com.ruoyi.system.controller;

import com.ruoyi.system.domain.UserSession;
import com.ruoyi.system.service.IUserSessionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/system/userSessions")
public class UserSessionsController {

    @Autowired
    private IUserSessionsService userSessionsService;

    // 解决冲突的方法
    @GetMapping("/list")
    public List<UserSession> list() {
        return userSessionsService.selectUserSessionsList();
    }

    // 其他方法
}